let apiCfg = (function() {
  return {
    // www.kst5g.com  192.168.124.223:8080  http://192.168.124.223:8080
    // baseURL: process.env.NODE_ENV === 'production' ? "https://www.xkw.io" : "/API",
    // baseURL: "https://www.xkw.io",
    baseURL: process.env.NODE_ENV === 'production' ? "https://www.xkw.io" : "https://www.xkw.io",
    socketUrl: process.env.NODE_ENV === 'production' ? "wss://www.xkw.io/ws/" : "wss://www.xkw.io/ws/",
    // klineSocketUrl: process.env.NODE_ENV === 'production' ? "wss://www.xkw.io/ws/websocket/" : "wss://www.xkw.io/ws/websocket/",
    // 二维码路径 邀请链接
    qrUrl: 'https://www.xkw.io/',
    downAppurl: 'https://www.xkw.io/download/index.html',
    //获取app地址
    version: {
      url: "version"
    },
    //api接口的调用
    currencylist: {
      url: 'c2c/getc2ccoin',
      method: 'post',
      // reqUrl: "/home/action",
    },
    assess: {
      url: 'assess',
      method: 'post',
      reqUrl: "/home/action",
    },
    //查看币种详情
    currency_introduction: {
      url: 'trad/currency_introduction',
      method: 'post',
      // reqUrl: "/home/action",
    },
    //查看行情信息
    symbols: {
      url: 'trad/symbols',
      method: 'post',
      // reqUrl: "/home/action",
    },
    //获取24小时交易额和推荐币种行情
    overview: {
      url: 'trad/overview',
      method: 'post',
      // reqUrl: "/home/action",
    },

    tradCoinInfo: {
      url: 'trad/trad',
      method: 'post',
      // reqUrl: "/home/action",
    },
    //注册时电话区号的接口
    areacode: {
      url: "home/area_code",
      method: 'post',
      // reqUrl: "/home/action",
    },
    // 首页banner
    banner: {
      url: "home/banner",
      method: 'post',
      // reqUrl: "home/action"
    },
    //首页的混动字幕  home/NoticeBar
    articles: {
      url: "home/articles",
      method: 'post',
      // reqUrl: "home/action"
    },
    //查看我的邀请记录(分页)
    getmyrecom: {
      url: "user/getmyrecom",
      // reqUrl: "user/action",
    },
    //根据用户名去查看下一级团队 节点记录
    getteams: {
      url: "user/getteams",
      // reqUrl: "user/action",
    },

    getrecomcode: {
      url: "user/getrecomcode",
      // reqUrl: "user/action",
    },
    updatetradpassword: {
      url: "user/updatetradpassword",
      // reqUrl: "user/action",
    },
    //根据用户编号修改用户登录密码 个人认证 修改登录密码
    updateloginpassword: {
      url: "user/updateloginpassword",
      // reqUrl: "user/action",
    },
    //根据用户编号修改手机号码 个人认证页面 修改
    updatetel: {
      url: "user/updatetel",
      // reqUrl: "user/action"
    },
    //根据用户编号修改用户电子邮箱 个人认证页面
    updateemail: {
      url: 'user/updateemail',
      // reqUrl: "user/action"
    },
    updaterealyname: {
      url: 'user/editrealyname',
      reqUrl: "user/action"
    },
    //根据用户编号绑定谷歌认证码  mycenter/safetyrecord
    updategoogle: {
      url: 'user/updategoogle',
      // reqUrl: "user/action",
    },
    //获取谷歌验证Key   dialogContent/gooleAuth
    getgooglekey: {
      url: 'user/getgooglekey',
      // reqUrl: "user/action",
    },
    //根据用户编号查看历史操作信息
    getusersettinglog: {
      url: 'user/getusersettinglog',
      // reqUrl: "user/action",
    },
    //// 登录信息 根据用户编号查看历史登录信息
    getuserloginlog: {
      url: 'user/getuserloginlog',
      method: 'post',
      // reqUrl: "user/action",
    },
    //获取用户信息
    getuserinfo: {
      url: 'user/userinfo',
      // reqUrl: "user/action",
    },
    //手机忘记密码   重置密码
    forgetpwd: {
      url: 'member/forgetfromtel',
      // reqUrl: "user/action",
    },
    //手机注册  注册接口 user/Register copy
    enrollfromtel: {
      url: "member/enrollfromtel",
      // reqUrl: "user/action",
    },
    enrollfromemail: {
      url: "member/enrollfromemail",
      // reqUrl: "user/action",
    },
    memberLogin: {
      url: "member/login",
    },
    //两步登录第二部  登录验证的接口 user/Login copy
    checkcode: {
      url: "member/checksignin",
      reqUrl: "user/action",
    },
    //登录接口 user/login
    login: {
      url: 'member/signin',
      // reqUrl: "user/action",
    },
    ////登录之后个人中心界面 接口 myconter/secuity
    getcode: {
      url: "user/code",
      // reqUrl: "user/action",
    },
    // ----资产---
    c2cbalance: {
      url: "account/c2c_balance",
      // reqUrl: "/assets/action",
    },
    //根据币种查看币币账户币种余额
    tradbalance: {
      url: 'account/trad_balance',
      // reqUrl: "/assets/action",
    },
    //法币划转时获取法币账户，币币账户资产余额
    c2ctranferbalance: {
      url: 'account/c2c_tranfer_balance',
      // reqUrl: "/assets/action",
    },
    //法币账户和币币账户之间划转
    c2ctranfer: {
      url: 'account/c2c_tranfer',
      // reqUrl: "/assets/action",
    },
    c2cassetsamount: {
      url: 'c2c_assets_amount',
      reqUrl: "/assets/action",
    },
    //查看法币资产列表
    c2cassets: {
      url: "account/c2c_assets",
      // reqUrl: "/assets/action",
    },
    //删除提币地址
    removetoaddress: {
      url: 'account/remove_toaddress',
      // reqUrl: "/assets/action",
    },
    //添加提币地址
    addtoaddress: {
      url: "account/add_toaddress",
      // reqUrl: "/assets/action",
    },
    toaddress: {
      url: "account/toaddress",
      // reqUrl: "/assets/action",
    },
    //查看币种名称列表
    coins: {
      url: "account/coins",
      // reqUrl: "/assets/action",
    },
    //根据币种和类型查看记录
    finance_type_coin: {
      url: "account/finance_type_coin",
      // reqUrl: "/assets/action",
    },
    //根据类型查看币币财务记录
    finance_type: {
      url: "account/finance_type",
      // reqUrl: "/assets/action",
    },
    //根据币种查看币币财务记录
    finance_coin: {
      url: "account/finance_coin",
      // reqUrl: "/assets/action",
    },
    //币币财务记录
    finance_list: {
      url: "account/finance_list",
      // reqUrl: "/assets/action",
    },
    //申请提币
    outcoin: {
      url: "account/outcoin",
      // reqUrl: "/assets/action",
    },
    //币币提币信息
    withdrawal_tips: {
      url: "account/withdrawal_tips",
      // reqUrl: "/assets/action",
    },
    recharge_tips: {
      url: "recharge_tips",
      reqUrl: "/assets/action",
    },
    //币币充币地址
    getaddress: {
      url: "account/address",
      // reqUrl: "/assets/action",
    },
    //币币资产列表
    trad_assets_amount: {
      url: 'account/myaccount',
      method: 'post',
      reqUrl: "/assets/action",
    },
    trad_assets: {
      url: 'account/myaccount',
      method: 'post',
      // reqUrl: "/assets/action",
    },
    // end-=---------------


    // 订单 查看已完成或者已取消的法币订单
    c2c_order: {
      url: 'c2c/c2c_order',
      method: 'post',
      // reqUrl: "/order/action",
    },
    //查看正在进行中的法币订单
    c2c_entrust: {
      url: 'c2c/c2c_entrust',
      method: 'post',
      // reqUrl: "/order/action",
    },
    //查看币币交易我的所有币种当前委托记录
    trad_entrust: {
      url: 'trad/trad_entrust',
      method: 'post',
      // reqUrl: "/order/action",
    },
    //查看币币我的所有币种交易历史委托记录
    trad_history: {
      url: 'trad/trad_history',
      method: 'post',
      // reqUrl: "/order/action",
    },
    //查看我的所有币种币币交易成交明细
    trad_order: {
      url: 'trad/trad_order',
      method: 'post',
      // reqUrl: "/order/action",
    },
    // 币币交易 获取K线
    getkline: {
      url: "/trad/kline",
      method: 'post',
      // reqUrl: "/trad/kline",
    },
    //市价卖出
    sell_market: {
      url: "trad/sell_market",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //市价买入
    buy_market: {
      url: "trad/buy_market",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //限价卖出
    sell_limit: {
      url: "trad/sell_limit",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //限价买入
    buy_limit: {
      url: "trad/buy_limit",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //根据主币种以及交易币种查看我的历史委托记录
    entrust_history: {
      url: "trad/entrust_history",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //根据主币种以及交易币种查看我的当前委托记录
    entrust_order: {
      url: "trad/entrust_order",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //全站最新成交记录
    top_order: {
      url: "trad/top_order",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //获取买入卖出档位图
    entrust: {
      url: "trad/entrust",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //根据主币种和交易币种获取币种交易对信息
    info: {
      url: "trad/info",
      method: 'post',
      // reqUrl: "/trad/action",
    },
    //撤销我的委托订单
    close_entrust: {
      url: "trad/close_entrust",
      method: 'post',
      // reqUrl: "/trad/action",
    },

    // 上传图片
    upimg: {
      url: "upimg",
      method: 'post',
      reqUrl: "/user/img",
    },
    // 取消订单
    closec2corder: {
      url: "c2c/closec2corder",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //一键卖出
    fastsellcoin: {
      url: "c2c/fastsellcoinn",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //一键买入
    fastbuycoin: {
      url: "c2c/fastbuycoin",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //检查用户是不是商户
    checkusermerchant: {
      url: "c2c/checkusermerchant",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //用户买入卖出前检查支付方式
    checkpaytype: {
      url: "c2c/checkpaytype",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //投诉订单
    questc2corder: {
      url: "c2c/questc2corder",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //查看我的收款方式
    getmypaytype: {
      url: 'c2c/getmypaytype',
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    // 修改微信
    updatewx: {
      url: "c2c/updatewx",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //修改银行卡号
    updatebankcard: {
      url: "c2c/updatebankcard",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //修改支付宝
    updatezfb: {
      url: "c2c/updatezfb",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    addorderinfo: {
      url: "addorderinfo",
      method: 'post',
      reqUrl: "/c2c/action",
    },
    //查看聊天方式
    getorderinfo: {
      url: "c2c/getorderinfo",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //我已收款
    getmoneyok: {
      url: "c2c/getmoneyok",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //我已打款
    sendmoneyok: {
      url: "c2c/sendmoneyok",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    // C2C交易市场卖出
    sellc2cmarket: {
      url: "c2c/sellc2cmarket",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //C2C交易市场买入
    buyc2cmarket: {
      url: "c2c/buyc2cmarket",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //撤销未被交易的C2C订单
    updatec2ctrad: {
      url: "c2c/updatec2ctrad",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //查看商户的挂单
    getmyc2cmarketorder: {
      url: "c2c/getmyc2cmarketorder",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //商户下单
    addc2centrust: {
      url: "c2c/addc2centrust",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //根据交易币种获取C2C交易市场（分页)
    getc2cmarketorder: {
      url: "c2c/getc2cmarketorder",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //获取C2C交易币种
    getc2ccoin: {
      url: "c2c/getc2ccoin",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //申请商户
    addmerchant: {
      url: "c2c/addmerchant",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    //获取C2C申请商户时抵押的币种
    getmerchantservices: {
      url: "c2c/getmerchantservices",
      method: 'post',
      // reqUrl: "/c2c/action",
    },
    // 上币申请
    add_apply: {
      url: "add_apply",
      method: 'post',
      reqUrl: "/apply/action",
    },
    //糖果社区
    add_signin: {
      url: "add_signin",
      method: 'post',
      reqUrl: "/candy/action",
    },
    signin_order: {
      url: "signin_order",
      method: 'post',
      reqUrl: "/candy/action",
    },
    signin_volume: {
      url: "signin_volume",
      method: 'post',
      reqUrl: "/candy/action",
    },
    signin_day: {
      url: "signin_day",
      method: 'post',
      reqUrl: "/candy/action",
    },
    add_candy: {
      url: "add_candy",
      method: 'post',
      reqUrl: "/candy/action",
    },
    candy_order: {
      url: "candy_order",
      method: 'post',
      reqUrl: "/candy/action",
    },
    candy_coin: {
      url: "candy_coin",
      method: 'post',
      reqUrl: "/candy/action",
    },
    // 法币新加模块
    fiat_order_detail: {
      url: "fiat_order_detail",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    fiat_order: {
      url: "c2c/c2c_entrust",
      method: 'post',
      // reqUrl: "/fiat/action",
    },
    close_order: {
      url: "close_order",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    questc2corder: {
      url: "c2c/questc2corder",
      method: 'post',
      // reqUrl: "/fiat/action",
    },
    getmoneyok: {
      url: "c2c/getmoneyok",
      method: 'post',
      // reqUrl: "/fiat/action",
    },
    sendmoneyok: {
      url: "c2c/sendmoneyok",
      method: 'post',
      // reqUrl: "/fiat/action",
    },
    sell_entrust: {
      url: "sell_entrust",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    buy_entrust: {
      url: "c2c/buyc2cmarket",
      method: 'post',
      // reqUrl: "/fiat/action",
    },
    close_entrust: {
      url: "trad/close_entrust",
      method: 'post',
      // reqUrl: "/fiat/action",
    },

    add_entrust: {
      url: "add_entrust",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    fiat_entrust: {
      url: "fiat_entrust",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    fiat_coin: {
      url: "fiat_coin",
      method: 'post',
      reqUrl: "/fiat/action",
    },
    // 闪兑
    add_flash: {
      url: "add_flash",
      method: 'post',
      reqUrl: "/flash/action",
    },
    flash_order: {
      url: "flash_order",
      method: 'post',
      reqUrl: "/flash/action",
    },
    flash_coin: {
      url: "flash_coin",
      method: 'post',
      reqUrl: "/flash/action",
    },
    //矿机
    mill_list: {
      url: "min/min_manage",
      method: 'post',
    },
    //矿机收益记录
    millEarnings: {
      url: "min/income_order",
      method: 'post',
    },
    //阻止租赁矿机、
    close_min: {
      url: "min/close_min",
      method: 'post',

    },
    //立即租赁矿机、
    add_min: {
      url: "min/add_min",
      method: 'post',

    },
    //我的矿机
    add_min: {
      url: "min/min_order",
      method: 'post',

    }

  }
}());


export default apiCfg;